//package com.itheima.config.aspect;
//
//import lombok.extern.slf4j.Slf4j;
//import org.aspectj.lang.ProceedingJoinPoint;
//import org.aspectj.lang.annotation.Around;
//import org.aspectj.lang.annotation.Aspect;
//import org.springframework.stereotype.Component;
//
//@Component
////开启环绕  方面
//@Aspect
//@Slf4j
//public class TimeAspect {
//    //周围   过程连接点
//    @Around("execution(* com.itheima.service.*.*())")//过程连接点
//    public Object recordTime(ProceedingJoinPoint joinPoint) throws Throwable {
//        long statr = System.currentTimeMillis();
//        Object proceed = joinPoint.proceed();
//        long end = System.currentTimeMillis();
//        log.info("xxxx类 xxxx方法 执行了{}毫秒",(end-statr));
//        return proceed;
//    }
//}
